package com.sk.ccflower.lib.util.json;

import java.io.IOException;
import java.io.Writer;

import com.sk.ccflower.lib.util.JSONUtil;

/**
 * @author  Eunwook Lee
 */
public class JSONString extends JSONObject {

	private static final long serialVersionUID = 1115445332848510885L;
	
	private String value;
	
	/*
	 * construtor
	 */
	public JSONString(String value) {
		this.value = value;
	}

	/*
	 * implements JSONObject
	 */

	@Override
	public void writeJSON(Writer out) throws IOException {
		JSONUtil.writeJSON(value, out);
	}

	/**
	 * @return
	 */
	@Override
	public Object getValue() {
		return value;
	}

}
